package edu.xaut.bookingsys.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum EnumLevel {
    Admin(1, "超级管理员"),
    Chief(2, "主任"),
    LabTeacher(3, "实验室老师"),
    NormTeacher(4, "学院老师");

    EnumLevel(int i, String l) {
        id = i;
        level = l;
    }

    @EnumValue
    private final int id;
    @JsonValue
    private final String level;

//    @JsonValue
//    public String getLevel() {
//        return level;
//    }
}
